import Layout from '@/views/layout.vue'
// 考试计划
const examPlan = r => require.ensure([], () => r(require('../views/city/examPlan.vue')), 'city')
const examLayout = r => require.ensure([], () => r(require('../views/city/examLayout.vue')), 'city')
const setExamTime = r => require.ensure([], () => r(require('../views/city/setExamTime.vue')), 'city')

// 管理员管理
const addAdmin = r => require.ensure([], () => r(require('../views/city/addAdmin.vue')), 'city')
const adminManagement = r => require.ensure([], () => r(require('../views/city/adminManagement.vue')), 'city')
const evaluationManagement = r => require.ensure([], () => r(require('../views/city/evaluationManagement.vue')), 'city')

// 考生信息管理
const gradeCount = r => require.ensure([], () => r(require('../views/city/gradeCount.vue')), 'city')
const infoManagement = r => require.ensure([], () => r(require('../views/city/infoManagement.vue')), 'city')

// 机构管理
const orgManagement = r => require.ensure([], () => r(require('../views/city/orgManagement.vue')), 'city')

// 审核编排
const examineManagement = r => require.ensure([], () => r(require('../views/city/examine.vue')), 'city')

export default [
  {
    path: '/',
    component: Layout,
    name: 'city',
    // redirect: '/examPlan',
    children: [
      {
        path: '/examPlan',
        name: 'examPlan',
        component: examPlan
      },
      {
        path: '/examLayout',
        name: 'examLayout',
        component: examLayout
      },
      {
        path: '/setExamTime',
        name: 'setExamTime',
        component: setExamTime
      },
      {
        path: '/addAdmin',
        name: 'addAdmin',
        component: addAdmin
      },
      {
        path: '/adminManagement',
        name: 'adminManagement',
        component: adminManagement
      },
      {
        path: '/gradeCount',
        name: 'gradeCount',
        component: gradeCount
      },
      {
        path: '/infoManagement',
        name: 'infoManagement',
        component: infoManagement
      },
      {
        path: '/orgManagement',
        name: 'orgManagement',
        component: orgManagement
      },
      {
        path: '/evaluationManagement',
        name: 'evaluationManagement',
        component: evaluationManagement
      },
      {
        path: '/examine',
        name: 'examine',
        component: examineManagement
      }
    ]
  }
]
